﻿<UserControl x:Class="Wilke.Interactive.Drone.PlayGround.UserControls.ButtonHeader"
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
 xmlns:userControls="clr-namespace:Wilke.Interactive.Drone.PlayGround.UserControls"
 mc:Ignorable="d" 
 d:DesignHeight="142" d:DesignWidth="881">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="ResourceDictionary.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid Background="#FF202020" Height="142" VerticalAlignment="Top">
        <Path Stroke="Silver" StrokeThickness="2" Data="M 0,70 L 2000,70" />
        <Path Stroke="Silver" Margin="7 0 7 0" StrokeThickness="2" Data="M 1,150 L 1,78 L 2000,78" />
        <Path Stroke="Silver" Margin="7 0 7 0" StrokeThickness="2" Data="M 1,78 L 1000,78 L 1000,150" HorizontalAlignment="Right" />
        <Border x:Name="menuButtonBorder"     
    HorizontalAlignment="Center" 
    VerticalAlignment="Top"
    Background="#FF202020"
    Width="120" Height="140">
            <Grid Height="150">
                <Path  Stroke="Silver" StrokeThickness="2" Data="M 0,70 L10,70 A 1,1 0 0 0 110,70 L120,70"/>
                <Path  Stroke="Silver" StrokeThickness="2" Data="M 1,77 C 1,100 24,127 55,130 L 55,140"/>
                <Path  Stroke="Silver" StrokeThickness="2" Data="M 68,140 L 68,130 C 97,125 115,106 120,78"/>
                <Button Content="Button" Name="buttonHome" Style="{DynamicResource GlassMenuButtonDeconnected}" 
                        Margin="5,32,4,10" 
                        Click="buttonHome_Click" />
            </Grid>
        </Border>
        <TextBlock HorizontalAlignment="Left" Margin="12,14,0,0" Name="textBlock1" Text="Drone Interactive Demo" Foreground="Silver" FontFamily="Tahoma" FontSize="26" Width="608" Height="37" VerticalAlignment="Top" />
        <Popup Name="popupPieMenu" 
               Placement="Bottom" 
               IsOpen="False" 
               AllowsTransparency="True" 
               Focusable="False"
               Width="360" 
               Height="180"
               StaysOpen="False" Closed="popupPieMenu_Closed">
            <userControls:PieMenu x:Name="pieMenu" SegmentClicked="PieMenu_SegmentClicked">
            </userControls:PieMenu>
        </Popup>
    </Grid>
</UserControl>
